﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using QuanLyDuAn.DTO;
using QuanLyDuAn.DataAccess;
namespace QuanLyDuAn.BUS
{
    class PermissionController
    {
        dbAccess database = new dbAccess();
        DataSet ds;
        SqlConnection conn;
        SqlDataAdapter da;
        SqlCommand cmd;
        public DataSet LoadPermission()
        {
            conn = database.GetConnect();
            conn.Open();
            ds = new DataSet();
            cmd = new SqlCommand("GetPermission", conn);
            da = new SqlDataAdapter(cmd);
            da.Fill(ds, "Permission");
            return ds;
        }
    }
}
